package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (Course)实体类
 *
 * @author makejava
 * @since 2025-06-09 18:58:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Course implements Serializable {
    private static final long serialVersionUID = -89096951743511914L;
/**
     * 主键
     */
    private Long id;
/**
     * 课程名称
     */
    private String title;
/**
     * 课程描述
     */
    private String description;
/**
     * 课程讲师ID
     */
    private Integer teacherId;
/**
     * 课程价格
     */
    private Double price;
/**
     * 显示排序
     */
    private Integer sort;
/**
     * 课程封面图片路径
     */
    private String cover;
/**
     * 销售量
     */
    private Integer buyCount;
/**
     * 学习人数
     */
    private Integer learnCount;
/**
     * 浏览量
     */
    private Integer viewCount;
/**
     * 课程上下架状态 0-上架 1-下架
     */
    private Integer enable;
/**
     * 创建时间
     */
    private Date createTime;
/**
     * 更新时间
     */
    private Date updateTime;
/**
     * 创建者
     */
    private String creater;
/**
     * 更新者
     */
    private String updater;
    /**
     * 备注
     */
    private String remark;

    /**
     * 收藏
     * @return
     */
    private String favorite;
    /**
     * 关注
     */
    private String attention;

    /**
     * 讲师姓名
     */
    private String teacherName;

    /**
     * 讲师真实姓名
     */
    private String teacherRealName;

    @Override
    public String toString() {
        return "Course{" +
                "attention='" + attention + '\'' +
                ", id=" + id +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", teacherId=" + teacherId +
                ", price=" + price +
                ", sort=" + sort +
                ", cover='" + cover + '\'' +
                ", buyCount=" + buyCount +
                ", learnCount=" + learnCount +
                ", viewCount=" + viewCount +
                ", enable=" + enable +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", creater='" + creater + '\'' +
                ", updater='" + updater + '\'' +
                ", favorite='" + favorite + '\'' +
                '}';
    }

    public String getFavorite() {
        return favorite;
    }

    public void setFavorite(String favorite) {
        this.favorite = favorite;
    }

    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public Integer getLearnCount() {
        return learnCount;
    }

    public void setLearnCount(Integer learnCount) {
        this.learnCount = learnCount;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

}

